<template>
    <view class="smart-page-head">
        <view class="smart-page-head-title">switch</view>
    </view>
    <view>默认模式</view>
    <view>
        <switch @change="switch1Change"></switch>
        <switch checked="true"></switch>
    </view>
    <view>颜色与大小的改变</view>
    <view>
        <switch color="blue" class="mini_switch"></switch>
    </view>
</template>

<script>
    export default{
        data(){
            return{

            }
                         
        },
        methods:{
            switch1Change(e){
                console.log(e.detail.value)
            }
        }
    }
</script>